﻿using System.ServiceModel;
using System.Windows.Forms;
using AccessControl.WorkflowEngine;


namespace ACTest.WorkflowEngineTester
{
    public partial class MainForm : Form
    {
        private ServiceHost _host;
        public MainForm()
        {
            InitializeComponent();
        }

        private void buttonStartService_Click(object sender, System.EventArgs e)
        {
            _host = new ServiceHost(typeof(WorkflowEngineService));
            _host.Open();
            }

        private void button1_Click(object sender, System.EventArgs e)
        {
            _host.Close();
        }

   }
}
